package com.hcss.demo.demo.controller;


import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**  
 *
 * @Prject: hcss
 * @Package: com.hcss
 * @ClassName: test
 * @author: lvfang 
 * @version: V1.0  
 */
@Controller
@RequestMapping("mainPage")
public class IndexController {
	
	/**
	 * 测试
	 * 
	 * @return String
	 * @throws Exception
	 */
	@RequestMapping("/index")
	public ModelAndView index(HttpServletRequest request) throws Exception {
		ModelAndView view = new ModelAndView("/index");
		view.addObject("userName", "adminstrator");
		return view;
	}
}
